
import { request } from '../../utils/request'
import { getLiveId } from '../../utils/storage'

// 获取奖池金额
export function getPoolMoney() {
    return request('jianLai/luckyDbList6', 'GET', {
        splid: getLiveId(),
        cancelLoading: true,
    });
}
// 获取转一转相关信息W
export function getZyzInfo() {
    return request('jianLai/getLuckyId6', 'GET', {
        splid: getLiveId(),
        playInfo: 'hdGame89',
    });
}
// 获取转一转排行榜列表
export function getZyzRank() {
    return request('jianLai/luckyDbRank6', 'GET', {
        splid: getLiveId(),
    });
}
// 转一转充值
export function zyzRecharge(paramObj) {
    return request('hmWxmoney/chongzhiNyn', 'POST', {
        splid: getLiveId(),
        giftId: 'one',
        USER_ID: paramObj.userId,
        openid: paramObj.openId,
    });
}
// 转一转开始游戏
export function startZyz(paramObj) {
    return request('jianLai/luckyDb6', 'POST', {
        splid: getLiveId(),
        playInfo: 'hdGame89',
        id: paramObj.turnId,
    });
}
// 转一转发送中奖信息
export function sendPrizeInfo(paramObj) {
    return request('jianLai/luoXuanWan6', 'POST', {
        type: '2',
        gold: paramObj.gold,
        balance: paramObj.remainCoin,
        splid: getLiveId(),
        id: paramObj.turnId,
    });
}
// 发送广播
export function sendBroadCast(paramObj) {
    return request('sendMsgController/duxin6', 'POST', {
        splid: getLiveId(),
        ykq_info: paramObj.c
    });
}